package cn.lx.expansion;

/**
 * @author lixin
 * @Classname Client
 * @Description TODO
 * @Date 2019/10/5 上午10:58
 */
public class Client {
    public static void main(String[] args) {
        IGamePlayer iGamePlayer = new GamePlayer("lixin");
        iGamePlayer.login("lixin", "pwd");
        iGamePlayer.killBoss();
        iGamePlayer.upgrade();


        IGamePlayer lixin = new GamePlayer("lixin");

        IGamePlayer dl = new GamePlayerProxy(lixin);

        dl.login("lixin", "pwd");
        dl.killBoss();
        dl.upgrade();
    }
}
